package com.xu.service;

import com.xu.pojo.Items;
import com.xu.pojo.ItemsImg;
import com.xu.pojo.ItemsParam;
import com.xu.pojo.ItemsSpec;
import com.xu.pojo.vo.CommentLevelCountsVO;
import com.xu.pojo.vo.ItemCommentVO;
import com.xu.pojo.vo.ShopcartVO;
import com.xu.utils.PagedGridResult;

import java.util.List;

/**
 * @author anan
 * @create 2022-02-20 15:47
 */
public interface ItemService {
    public Items querryItemById(String itemId);

    public List<ItemsImg> querryItemImgList(String itemId);

    public List<ItemsSpec> querryItemSpecList(String itemId);

    public ItemsParam querryItemParam(String itemId);

    public CommentLevelCountsVO queryCommentCounts(String itemId);

    public PagedGridResult queryPagedComments(String itemId, Integer level, Integer page, Integer pageSize);

    public PagedGridResult searchItems(String keywords, String sort, Integer page, Integer pageSize);

    public PagedGridResult searchItems(Integer catId, String sort, Integer page, Integer pageSize);

    public List<ShopcartVO> queryItemsBySpecId(String specIds);

    public ItemsSpec queryItemSpecById(String specId);

    public String queryItemMainImgById(String itemId);

    public void decreaseItemSpecStock(String specId, int buyCount);

}
